<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_webroot('skin/css/admin.css'); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_webroot('skin/css/main.css'); ?>">
<script type='text/javascript' src="<?php echo $this->_webroot('skin/js/jy.js'); ?>"></script>

<style>
td span {color:red;}
.green {color:green;}
.red {color:red;}
#divname{float:left; margin:0px;}
</style>
</head>
<body>
<input type="hidden" id="update_right" value="1" ></input>
<div id="maincontent">
	<div class="wrap">
	<div class="crumbs">当前位置 &gt;&gt; 用户管理 &gt;&gt; 未审核商铺 &gt;&gt; 店主信息</div>
        <hr />
	<div class="infobox">
	<h3><span class="left">店主信息</span><span class="right" style="margin-right:15px;">
	<a href="<?php echo $this->_url('admin/shop/request/');?>">未审核商铺</a></span></h3>
    <div class="content2">
		<form action="a.php?act=shop_request" name="form1" method="post">
		<table class="list_table">
		  <tbody>
			<tr>
				<td width="84px">商铺名称：</td>
				<td><?php echo $result['shoprequest']['company_name'];?></td>
			</tr>
			<tr>
				<td>法人姓名：</td>
				<td><?php echo $result['shoprequest']['person_name'];?></td>
			</tr>
			<tr>
				<td>法人身份证：</td>
				<td><img src="<?php echo $result['shoprequest']['credit_idcard'];?>" height="125px" width="230px" onerror="this.src='<?php echo $this->_webroot('images/nopic.gif'); ?>'"/></td>
			</tr>
			<tr>
				<td>营业执照：</td>
				<td><img src="<?php echo $result['shoprequest']['credit_businesslicense'];?>" height="125px" width="230px" onerror="this.src='<?php echo $this->_webroot('images/nopic.gif'); ?>'"/></td>
			</tr>
			<tr>
				<td>税务登记证：</td>
				<td><img src="<?php echo $result['shoprequest']['credit_taxlicense'];?>" height="125px" width="230px" onerror="this.src='<?php echo $this->_webroot('images/nopic.gif'); ?>'"/></td>
			</tr>
			<tr>
				<td>组织机构：</td>
				<td><img src="<?php echo $result['shoprequest']['credit_organizationcode'];?>" height="125px" width="230px" onerror="this.src='<?php echo $this->_webroot('images/nopic.gif'); ?>'"/></td>
			</tr>
			<tr>
				<td>企业邮编：</td>
				<td><?php echo $result['shoprequest']['zipcode'];?></td>
			</tr>
			<tr>
				<td>手机号码：</td>
				<td><?php echo $result['shoprequest']['mobile'];?></td>
			</tr>
			<tr>
				<td>联系电话：</td>
				<td><?php echo $result['shoprequest']['telphone'];?></td>
			</tr>
			<tr>
				<td>申请时间：</td>
				<td><?php echo $result['shoprequest']['created'];?></td>
			</tr>
			<tr>
				<td>公司所在地：</td>
				<td><?php echo $result['shoprequest']['company_area'];?></td>
			</tr>
			<tr>
				<td>详细通讯地址：</td>
				<td><?php echo $result['shoprequest']['company_address'];?></td>
			</tr>
			<tr>
				<td>状态：</td>
				<td>
					<?php if($result['shoprequest']['status']==1) {echo "<span class='green'>通过审核</span>";}
					elseif($result['shoprequest']['status']==2) {echo "<span class='red'>审核失败</span>";}
					else {echo '等待审核';} ?>
				</td>
			</tr>
		</tbody>
		</table>
		</form>
	   </div>
	  </div>
	  	<div class="infobox">
	<h3><span class="left">店铺信息</span></h3>
    <div class="content2">
		<form action="<?php echo $this->_url('admin/shop/dorequest/');?>" name="form1" method="post">
		<table class="list_table">
		  <tbody>
			<tr>
				<td width="84px">店铺名称：</td>
				<td><?php echo $result['shopinfo']['shop_name'];?></td>
			</tr>
			<tr>
				<td>所在地区：</td>
				<td><?php echo $resultArea[$result['shopinfo']['shop_country']];?>&nbsp;
					<?php echo $resultArea[$result['shopinfo']['shop_province']];?>&nbsp;
					<?php echo $resultArea[$result['shopinfo']['shop_city']];?>&nbsp;
					<?php echo $resultArea[$result['shopinfo']['shop_district']];?>&nbsp;</td>
			</tr>
			<tr>
				<td>经营范围：</td>
				<td><?php echo $result['shopinfo']['shop_management'];?></td>
			</tr>
			<tr>
				<td>详细地址：</td>
				<td><?php echo $result['shopinfo']['shop_address'];?></td>
			</tr>
			<tr>
				<td>店铺简介：</td>
				<td><?php echo $result['shopinfo']['shop_intro'];?></td>
			</tr>
		</tbody>
		</table>
	
		</form>
	   </div>
	  </div>
	  <?php if($result['shoprequest']['status']==0){ ?>
	  	<input type="button" name="" class="regular-button"  onclick="auditing(1,<?php echo $request_id;?>)" value="审核通过" />
		<input type="button" name="" class="regular-button"  onclick="auditing(2,<?php echo $request_id;?>)" value="审核不通过" />
		<?php } ?>
	  
		

	</div>
</div>
<script language='javascript'>
function auditing(v,id){
    window.location.href="<?php echo $this->_url('admin/shop/dorequest/?');?>s="+v+"&id="+id;
}


</script>
</body>
</html>